// 上传API

import { HttpUrlVariable } from '@/constants'
import type { UploadResult } from '@/types/common'
import RequestHttp from '@/utils/request'

export const uploadAPI = (filePath: string) =>
  RequestHttp.upload<UploadResult>(HttpUrlVariable.UPLOAD_URL, filePath)
